package elmar.datastructure.tree;

import junit.framework.TestCase;

public class NodeTest extends TestCase {
	public void testView(){
		Node<Integer> r  = new Node<Integer>(0);
		Node<Integer> n1 = new Node<Integer>(1);
		Node<Integer> n2 = new Node<Integer>(2);
		Node<Integer> n3 = new Node<Integer>(3);
		Node<Integer> n4 = new Node<Integer>(4);
		Node<Integer> n5 = new Node<Integer>(5);
		Node<Integer> n6 = new Node<Integer>(6);
		Node<Integer> n7 = new Node<Integer>(7);
		r.addChild(n1);
		r.addChild(n2);
		n1.addChild(n3);
		n2.addChild(n4);
		n2.addChild(n5);
		n2.addChild(n6);
		n2.addChild(n7);
		System.out.println(r);
		
	}
}
